#define GUI_LOWLEVEL_C
#include "GUI.h"

#if SCREEN_TYPE == DOT_TYPE
extern void GUI_DotScreen_Disp_Byte(INT8U Byte,INT16U Row,INT16U Col);
#else
extern void GUI_SegScreen_Disp_Buf(INT8U *pBuf);
#endif

#if SCREEN_TYPE == DOT_TYPE
void GUI_Disp_Update(void)
{
#ifdef QT_SIM
 w->lcd_screen->update();
#else
 INT16U i, j;

 for(i=0;i<SCREEN_YSIZE/8;i++)
  for(j=0;j<SCREEN_XSIZE;j++)
  {
    if(GUI_Disp_Buf[i][j]!= GUI_Disp_Buf_Bak[i][j])
    {
      GUI_DotScreen_Disp_Byte(GUI_Disp_Buf[i][j],i,j);
    }
  }
#endif
}
#else
void GUI_Disp_Update(void)
{
  GUI_SegScreen_Disp_Buf(&GUI_Disp_Buf[0][0]);
}
#endif
